ObjectContainerAssociation Class [IIS 7 and higher]

Associates an object with its child objects.

Syntax

class ObjectContainerAssociation

Methods

This class contains no methods.

Properties

The following table lists the properties exposed by the ObjectContainerAssociation class.

Name

Description

Container

An object ref value that represents a containing object.

Element

An object ref value that represents the object within the container.

Subclasses

Name

Description

ApplicationContainsVirtualDirectory

Provides a relationship between an IIS application and its virtual directories.

ApplicationPoolContainsApplication

Provides a relationship between an application pool and its applications.

ApplicationPoolContainsProcess

Provides a relationship between an application pool and its worker processes.

ServerContainsApplicationPool

Provides a relationship between a Web server and its application pools.

ServerContainsSite

Provides a relationship between a Web server and its Web sites.

ServerContainsSSLBinding

Provides a relationship between a Secure Sockets Layer (SSL) binding and a Web server that is running IIS.

SiteContainsApplication

Provides a relationship between a Web site and its applications.

SiteUsesSSLBinding

Provides a relationship between an IIS Web site and a Secure Sockets Layer (SSL) binding.

WorkerProcessContainsAppDomain

Provides a relationship between a worker process and its application domains.

Remarks

This base class allows one member of the Object class to contain another member of the Object class. The containing object (for example, Site) is called a container, and the contained object (for example, Application) is called an element. A container object may contain one or more elements. ObjectContainerAssociation classes are useful because they enable you to create intuitive parent/child associations that would otherwise be difficult to implement in the relatively flat WMI namespace.

Requirements

Type

Description

Client

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Server 2008.

Product

IIS 7

MOF file

WebAdministration.mof

See Also

Reference

AppDomain Class [IIS 7 and higher]

Application Class [IIS 7 and higher]

ApplicationPool Class [IIS 7 and higher]

ApplicationContainsVirtualDirectory Class [IIS 7 and higher]

ApplicationPoolContainsApplication Class [IIS 7 and higher]

ApplicationPoolContainsProcess Class [IIS 7 and higher]

ConfiguredObject Class [IIS 7 and higher]

EmbeddedObject Class [IIS 7 and higher]

Object Class [IIS 7 and higher]

Site Class [IIS 7 and higher]

SiteContainsApplication Class [IIS 7 and higher]

VirtualDirectory Class [IIS 7 and higher]

WorkerProcess Class [IIS 7 and higher]

WorkerProcessContainsAppDomain Class [IIS 7 and higher]

Other Resources

WMI Provider [IIS 7 and higher]